<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>demo</title>
    <style>
        .lists{
            height: 20px;
            position: relative;
            overflow: hidden;
        }
        .lists .slider{
            position: absolute;
            top: 0;
            -webkit-transition: top 1s;
            -moz-transition: top 1s;
            -o-transition: top 1s;
            transition: top 1s;
        }
        .slider.y-slide-stop{
            -webkit-transition: none;
            -moz-transition: none;
            -o-transition: none;
            transition: none;
        }
        .slider p{
            margin: 0;
        }
    </style>
</head>
<body>
<div class="lists">
    <div class="slider"></div>
</div>

<script src="util.js"></script>
<script>
    _util().scrollNews({
        el: document.getElementsByClassName("slider")[0],
        parentElHeight: 20,
        transTime: 1, //单位秒
        scrollInter: 2, //单位秒
        data: ["来自国家的Al Fathir Pratama提升到了699名1 15:47", "来自国家的Al Fathir Pratama提升到了699名2 15:47", "来自国家的Al Fathir Pratama提升到了699名3 15:47", "来自国家的Al Fathir Pratama提升到了699名4 15:47"]
    })
</script>
</body>
</html>